package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;
import java.util.List;


/**
 * 预约到诊
 *
 * @author ShiXTong
 * @since 2022/11/23 0:01
 */
@Mapper
public interface OrderDao {
    Object findTodayOrderNumber(String newDate);

    Object findTodayVisitsNumber(String newDate);

    Object findThisWeekOrderNumber(String week);

    Object findThisWeekVisitsNumber(String week);

    Object findThisMonthOrderNumber(String month);

    Object findThisMonthVisitsNumber(String month);

    List<Map> findHotSetmeal();

    // 查询详情
    Map findByIdDetail(Integer id);

    /**
     * 根据order查询体检预约信息
     * @author szh
     * @param
     * @return
     */
    List<Order> findByOrder(@Param("memberId") Integer memberId,
                            @Param("orderDate") String orderDate,
                            @Param("setmealId") Integer setmealId);
    /**
     * 添加预约信息
     * @author szh
     * @param order
     */
    void add(Order order);




}
